<template>
	<view class="mode" @tap="show = !show" v-if="show">
		<view class="mode-fa">
			<image :src="Url+'img/sigin-success.png'" mode="widthFix"></image>
			<view class="mode-font">
				<text>签到成功</text>
				<text>获得{{detail}}积分</text>
			</view>
			<view class="mode-btn" @tap.stop="$emit('btn')">收下奖励</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			show:{
				type:Boolean,
				default:false
			},
			detail:{
				type:Number
			}
		},
		data() {
			return {
				Url:this.Imgurl,
				lo:true
			};
		},
		methods:{
			// btn(){
			// 	console.log('ddd')
			// }
		}
	}
</script>

<style lang="less">
	.mode{
		position: fixed;
		width: 100%;
		height: 100%;
		overflow: hidden;
		background:rgba(46,46,46,0.4);
		top: 0;
		left: 0;
		z-index: 100000;
		&-fa{
			width:70%;
			padding: 67upx 100upx;
			background-color: #FFFFFF;
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%,-50%);
			box-sizing: border-box;
			border-radius: 10upx;
			image{
				width:50%;
				height: 100upx;
				display: block;
				margin: 0 auto;
			}
		}
		&-font{
			margin-top: 38upx;
			margin-bottom: 40upx;
			text{
				display: block;
				color: #666666;
				font-size: 30upx;
				text-align: center;
				margin-bottom: 15upx;
			  &:first-child{
			  	color: #333333;
			  }	
			}
		}
		&-btn{
			width: 300upx;
			height: 60upx;
			text-align: center;
			line-height: 60upx;
			border:2upx solid #FF2842;
			border-radius:30upx;
			font-size: 28upx;
			color: #FF2842;
			margin: 0 auto;
		}
	}
</style>
